<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <!-- 导入vue.js -->
    <script src="vue.js"></script>
    <!-- 导入elementui的css及js -->
    <link rel="stylesheet" href="../plugins/elementui/index.css">
    <script src="../plugins/elementui/index.js"></script>



</head>
<body>

    <div id="app">
        <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
            <el-tab-pane label="用户管理" name="first">用户管理</el-tab-pane>
            <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane>
            <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
            <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
        </el-tabs>


    </div>

</body>
<script>
    new Vue({
        el : "#app",
        data() {
            return {
                activeName: 'third'
            };
        },
        methods: {
            handleClick(tab, event) {
                //console.log(tab);
                console.log(event);
            }
        }
    });
</script>

</html>